taskErrorMessage

Class: com.microstrategy.web.app.taglibs.taskproc.ErrorMessageTag

Usage:

This tag is used exclusively in the definition of a TASK ENVELOPE. When invoked it returns the error message generated by the Task. As such, it is typically only used in FAILURE envelopes. Without any attributes specified, the message is simply returned. The attributes can be used to format the error message in the envelope.

Name Required? Description
attrName false Specifies an XML attribute name to use when formatting the error message into an XML document. When specified, it will generate the following:
attrName="ERROR_MESSAGE"
encode false Specifies a type of encoding to perform on the error message. Possible values include: json, xml or html. For JSON encoding, we ensure that the error message can appear inside a single quoted string. For XML encoding, we ensure that the error message can appear inside an XML attribute value. For HTML encoding, we ensure html tags are encoded.
matchStr false Specifies an optional string it is searched for in the error message. If found and the "replace string" is specified, then all occurrences of this string are replaced with the replacement string. This happens before any encoding is performed.
replaceStr false Specifies an a "replacement string" to use in the error message. If found and the "match string" is specified, then all occurrences of the "match string" are replaced with this string. This happens before any encoding is performed.